package com.seven.restaurant.entity.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author BaiBan
 * @since 2022-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("food")
public class FoodPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜品名称
     */
    private String name;

    /**
     * 菜品图标
     */
    private String icon;

    /**
     * 菜品菜系
     */
    private String type;

    /**
     * 简介
     */
    private String briefIntroduction;

    /**
     * 价格
     */
    private Integer price;

    /**
     * 0-不推荐; 1-推荐
     */
    private Integer recommend;

    /**
     * 删除标记
     */
    private Integer del;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
